<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<script type="text/javascript" src="../../js/common/common.js"></script>
<link rel="stylesheet" type="text/css" href="../../css/global/public.css"/>
<link rel="stylesheet" type="text/css" href="../../css/question.css"/>
<link rel="stylesheet" href="../../css/global/mui.css" />
<title>极速电话</title>
</head>
<body>
	<form class="speedPat orderForm" id="orderForm" name="orderForm">
		<input type="hidden" name="patientName" id="patientName" value="" />
		<input type="hidden" name="answerMobile" id="answerMobile" value="" />
		<input type="hidden" name="birthday" id="birthday" value="" />
		<input type="hidden" name="patientSex" id="patientSex" value="" />
		
		<div class="question-box">
			<div class="title font3">病情描述</div>
			<div class="textarea font3"><textarea class="question font3" placeholder="请您详细描述您所患疾病、目前症状,以便医生能及时了解您的情况." name="questionbody" id="questionbody"></textarea>
				<p class="qword-num font2">最少描述<span class="depict-num">10</span>字</p>
			</div>
			<div class="upload camera-area">
				<ul class="thumb">
					<li class="addFile">
						<div class="add">
							<input type="file" accept="image/*" class="photos fileToUpload" id="fileToUpload" name="fileToUpload" onclick="javascript:this.value=''"/>
						</div>
					</li>
				</ul>
				<p class="font1">
					<!--上传图片资料病例</br>让医生更了解您的病情-->
					请上传相关图片(检查单,病历,患处,药品,处方等)</br>馨语会确保您的隐私安全.
				</p>
			</div>
		
    	</div>
	</form>
	 <div class="explain font3">
    	<ul>
    		<li>咨询说明:</li>
    		<li>1.如有疑问,请拨打027-85690800;</li>
    		<li>2.若医生在你发起咨询后拒绝或15分钟内未回复,系统将自动为您退款;</li>
    		<li>3.医生回复仅为建议,具体诊疗请前往医院进行.</li>
    	</ul>
	</div>
	<div class="question-fast">
		<button>提交问题</button>
	</div>
	<!--文字长度提示-->
	<div class="alert-pop">
		字数限制为10~100字
	</div>
	<!--转圈加载图片 -->
	<div class="alert-pop">
		正在加载...
	</div>
</body>
</html>
<script type="text/javascript" src="../../js/lib/mui.min.js" ></script>
<script type="text/javascript" src="../../js/module/utilModule.js" ></script> 
<script type="text/javascript" src="../../js/common/config.js"></script>
<script type="text/javascript" src="../../js/lib/zepto.min.js" ></script>
<script type="text/javascript" src="../../js/rapidlyPhone/rapidly-question.js" ></script>
<script type="text/javascript" src="../../js/module/speePhoneOrderModule.js" ></script>
<script type="text/javascript" src="../../js/common/upload.js" ></script>
<script type="text/javascript">
	$(".camera-area").fileUpload({
		"upload_url": "/att/upload", //上传url
		"remove_url": "/att/delete", //删除url
		"file": "file",
		"all": false, //是否启用压缩 
		"inputName": "questionfiles", //后台Vo对应的属性,
		"complete": function(response, inputID) {
			if(response.status == 200) {
			   //创建input元素
				var inputElement="<input type='hidden' name='questionfiles' id='"+inputID+"' value='"+response.result.fullurl+"' key='"+response.result.filekey+"'/>";
				$("."+inputID).append(inputElement);
				//隐藏进度条
				$("#shadow_"+inputID).hide();
				console.info("文件路径:"+response.result.fullurl);
				console.info("文件key:"+response.result.filekey);
			} else {
				console.error("文件上传失败!");
			}	
		}
	});
</script>